﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace msBsc.WebUi
{
    public partial class mfDjackInfo : msBsc.Cls.mbPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        public override void DoAction()
        {
            if (this.strAction == "init")
            {
                string djackId = this.GetParamHtValue("djackId");
                getUserInfo(djackId);
                base.DoAction();
            }
            else if (this.strAction == "telClick")
            {
                base.DoAction();
            }
        }

        private void getUserInfo(string djackId)
        {
            if (string.IsNullOrEmpty(djackId))
            {
                return;
            }
            using (msBsc.AppLogic.DataAlc.CBizVehicleInfo vehicleInfo = new AppLogic.DataAlc.CBizVehicleInfo())
            {
                DataSet ds = vehicleInfo.SelectByIds(djackId, "");
                if (ds == null)
                {
                    return;
                }
                string retJson = msBsc.AppLogic.Cfg.HttpTools.GetJsonByTable(ds.Tables[0], "", "", 1, 1000, "");
                this.ExecJScript(@"SetUserBaseInfo(" + retJson + ");SetUseConaction(" + retJson + ");");
            }
        }
    }
}